<template>
  <div>
    <Test ref="yyy"></Test>
    <h1 ref="xxx">123</h1>
    <button @click="handle">按钮</button>
  </div>
</template>

<script>
import Test from './components/Test.vue'
export default {
  components: {
    Test,
  },
  methods: {
    handle() {
      console.log(this.$refs)
    },
  },
}
</script>

<style></style>
